[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
Command/ startxtable Command/ stoplinenote Command/ style Command/ synonym Command/ textbackground Command/ textnote Command/ tooltip Command/ type Command/ typebuffer Command/ unit ___ If your question is of interest to ot

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
\starttext. Best regards: Otared % begin textbackground-Ursula.tex \definetextbackground[myBG][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.8\bodyfontsize, rightoffset=.8\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Wed, 31 Jan 2024 19:41:02 +0100 Hans Hagen wrote: > >> How do it get the same spacing as in the framedtext case? > > > > Is there a solution to this? Or an explanation why the spacing > > differs? > these are fundamentally different mechanisms .. you can play with > \inframed in the

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Hans Hagen
On 1/31/2024 7:15 PM, Marco Patzer wrote: On Thu, 16 Nov 2023 13:52:05 +0100 Marco Patzer wrote: I'm having problems getting the textbackground spacing offset to work. Example: \setupframedtext [offset=overlay, width=max, depthcorrection=off] \setuptextbackground [location

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Thu, 16 Nov 2023 13:52:05 +0100 Marco Patzer wrote: > I'm having problems getting the textbackground spacing offset to work. > Example: > > \setupframedtext > [offset=overlay, >width=max, >depthcorrection=off] > > \setuptextbackground > [loca

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggestions. Also take care over changing sty

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
> On 14 Dec 2023, at 09:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggestions. Also

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Ursula Hermann
Dear Henning, If I change the name of the textbackground with my example, I sent yesterday, there is no color in the paragraph. Many thanks Uschi Von: Henning Hraban Ramm Gesendet: Mittwoch, 13. Dezember 2023 15:52:08 An: mailing list for ConTeXt users

[NTG-context] Re: Problem with the paragraph

2023-12-13 Thread Henning Hraban Ramm
, the behaviour is undefined. First try to give your textbackground a different name. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
ext] Re: Colored Paragraph > > Am 05.12.23 um 14:16 schrieb Ursula Hermann: >> The paragraph should have a color in the background. How can I get an >> colored paragraph? > > Did you try \definetextbackground? > > https://wiki.contextgarden.ne

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm
in the background. How can I get an colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextbackground Hraban ___ If your

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
: > The paragraph should have a color in the background. How can I get an > colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextbackground

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Ursula Hermann
: Colored Paragraph Am 05.12.23 um 14:16 schrieb Ursula Hermann: > The paragraph should have a color in the background. How can I get an > colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextback

[NTG-context] Re: Colored Paragraph

2023-12-05 Thread Henning Hraban Ramm
Am 05.12.23 um 14:16 schrieb Ursula Hermann: The paragraph should have a color in the background. How can I get an colored paragraph? Did you try \definetextbackground? https://wiki.contextgarden.net/TextBackground https://wiki.contextgarden.net/Command/definetextbackground Hraban

[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
Hi! I'm having problems getting the textbackground spacing offset to work. Example: \setupframedtext [offset=overlay, width=max, depthcorrection=off] \setuptextbackground [location=paragraph, %% offset=overlay, %% does nothing %% backgroundoffset=overlay, %% does

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Aditya Mahajan via ntg-context
of an enumeration and framedtext that can produce > > something like in the attached picture? > > If you don’t need an enumeration, then don’t use one. > > Did you try text backgrounds? > https://wiki.contextgarden.net/TextBackground As an example, see this article th

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Henning Hraban Ramm via ntg-context
t that can produce something like in the attached picture? If you don’t need an enumeration, then don’t use one. Did you try text backgrounds? https://wiki.contextgarden.net/TextBackground And then use the plethora of \framed option

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context
not work and I haven’t found out why. Maybe I totally use it the wrong way. I would appreciate if someone could help me or has a tipp. Here is an example code, where the figure does not behave as expected, i.e. the figure is behind the text: [...] You have to use the textbackground mechanism

[NTG-context] textbackground for text of different size

2021-09-12 Thread Sylvain Hubert via ntg-context
Dear List, the red highlight block in the following example is not covering the two 40pt characters: \definetextbackground[important][frame=no,background=color,backgroundcolor=red] \starttext abc\important{123{\switchtobodyfont[40pt]45}xy}z \stoptext Is there an option that fixes this? Thanks!

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
-drawn line. What’s the right approach? Overlay? Textbackground? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman

Re: [NTG-context] textbackground not working

2021-06-25 Thread Hans Hagen
, the textbackground is not working. Could this be a bug or am I doing something wrong? Cheers, Christoph fixed in next upload (note: tex->mp parameters are redone, more in a pull than push fash

[NTG-context] textbackground not working

2021-06-25 Thread Christoph Reller
Hi, Consider the MWE: \definetextbackground[background][ background=color, backgroundcolor=gray] \starttext \starttextbackground[background] Test \stoptextbackground \stoptext In the latest version 2021-06-24 of ConTeXt LMTX, the textbackground is not working. Could this be a bug or am I

Re: [NTG-context] frameoffset in textbackground?

2021-06-08 Thread Wolfgang Schuster
Hans van der Meer schrieb am 07.06.2021 um 21:46: In the following MWE for a textbackground the parameter backgroundoffset has the expected effect. But for positive values only. A backgroundoffset=-10pt has no visible effect. But the real problem is the parameter frameoffset. No effect at all

[NTG-context] frameoffset in textbackground?

2021-06-07 Thread Hans van der Meer
In the following MWE for a textbackground the parameter backgroundoffset has the expected effect. But for positive values only. A backgroundoffset=-10pt has no visible effect.But the real problem is the parameter frameoffset. No effect at all, whatever frameoffset= is set to. dr. Hans van der Meer

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 21:01 +0100, Johann Birnick wrote: > On Thu, 2020-11-26 at 20:11 +0100, Wolfgang Schuster wrote: > > Johann Birnick schrieb am 26.11.2020 um 19:42: > > > Ah, sorry again. I use > > > > > > \usemodule[Scite] > > > > > > at the begin of the document. Removing this helps. But

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
You have to use the textbackground environment with a custom background to draw the line, the sidebar environment doesn't work because the code blocks forces a line break at the begin and end. You can look at Adityas blog for a example to create such a background: https://adityam.github.io/context

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 20:11 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 19:42: > > Ah, sorry again. I use > > > > \usemodule[Scite] > > > > at the begin of the document. Removing this helps. But I need it for the C > > and > > Cpp pretty printer. So do you know

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 19:42: Ah, sorry again. I use \usemodule[Scite] at the begin of the document. Removing this helps. But I need it for the C and Cpp pretty printer. So do you know what's going on with Scite module? 1. There is still no working minimal example, just

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 19:39 +0100, Johann Birnick wrote: > On Thu, 2020-11-26 at 19:35 +0100, Wolfgang Schuster wrote: > > Johann Birnick schrieb am 26.11.2020 um 19:26: > > > I didn't want to copy paste it :D Just add [option=XML] to \starttext like > > > this: > > > > Why do pass a option for

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 19:35 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 19:26: > > I didn't want to copy paste it :D Just add [option=XML] to \starttext like > > this: > > Why do pass a option for the typing environment to \starttext? > > >

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 19:26: I didn't want to copy paste it :D Just add [option=XML] to \starttext like this: Why do pass a option for the typing environment to \starttext? \definetextbackground[code][background=color, backgroundcolor=lightgray, frame=off,

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > On Thu, 2020-11-26 at 19:17 +0100, Wolfgang Schuster wrote: > > Johann Birnick schrieb am 26.11.2020 um 19:10: > > > On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > > > > Johann Birnick schrieb am 26.11.2020 um 17:00: > > > > > On Thu,

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 19:17 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 19:10: > > On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > > > Johann Birnick schrieb am 26.11.2020 um 17:00: > > > > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > > >

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 19:10: On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: Johann Birnick schrieb am 26.11.2020 um 17:00: On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: On Thu, 26 Nov 2020, Johann Birnick wrote: How to surround such things properly?

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 17:00: > > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > > > > > How to surround such things properly? I just want a background

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 17:00: On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: On Thu, 26 Nov 2020, Johann Birnick wrote: How to surround such things properly? I just want a background to these and a sidebar. No addition spacing / empty lines. A MWE will help...

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > > > How to surround such things properly? I just want a background to these > > > and > > > a > > > sidebar. No addition spacing / empty

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > How to surround such things properly? I just want a background to these and > > a > > sidebar. No addition spacing / empty lines. > > A MWE will help... > > Aditya For example, take:

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > How to surround such things properly? I just want a background to these and a > sidebar. No addition spacing / empty lines. A MWE will help... Aditya ___ If your question

[NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
Hi there, in my document(s) I have enumerations (created with \defineenumeration) and "typing"s (created with \definetyping) and I need to give a specific layout to them. In particular, I want to add textbackground (created with \definetextbackground) and sometimes a sideba

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
\stopitem} \stopitemize \stoptextbackground \stoptext Le jeu. 16 juil. 2020 à 14:59, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Otared Kavian schrieb am 16.07.2020 um 11:58: > > Hi Fabrice, > > > > Maybe you can play with different sett

Re: [NTG-context] Text around a figure

2020-07-16 Thread Wolfgang Schuster
Otared Kavian schrieb am 16.07.2020 um 11:58: Hi Fabrice, Maybe you can play with different settings of your textbackground, as in \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=paragraph, % or: text, always

Re: [NTG-context] Text around a figure

2020-07-16 Thread Otared Kavian
Hi Fabrice, Maybe you can play with different settings of your textbackground, as in \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=paragraph, % or: text, always, paragraph backgroundoffset=4pt

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
; >> \startframedtext[width=max,background=color,backgroundcolor=fondpaille] > >> \placefloat[][right,none]{} > >>{\externalfigure[dummy]} > >> \startitemize[n] > >>\dorecurse{3}{\startitem \input

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
;> \startitemize[n] >>\dorecurse{3}{\startitem \input ward \stopitem} >> \stopitemize >>\stopframedtext >>\stoptext > > > Side floats don't work in frames, use the textbackground environment to add a > colored box behind the text. > > Wo

Re: [NTG-context] Text around a figure

2020-07-15 Thread Wolfgang Schuster
,background=color,backgroundcolor=fondpaille]      \placefloat[][right,none]{}        {\externalfigure[dummy]}      \startitemize[n]        \dorecurse{3}{\startitem \input ward \stopitem}      \stopitemize    \stopframedtext    \stoptext Side floats don't work in frames, use the textbackground

Re: [NTG-context] Bar within math (amended)

2020-06-15 Thread Henning Hraban Ramm
> Am 11.06.2020 um 13:41 schrieb Axel Kielhorn : > >> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster >> : >> >> Use a textbackground to highlight parts of your text. >> >> \definetextbackground >> [Highlight] >> [frame=off, >> bac

Re: [NTG-context] Bar within math (amended)

2020-06-11 Thread Axel Kielhorn
> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster > : > > Use a textbackground to highlight parts of your text. > > \definetextbackground > [Highlight] > [frame=off, > background=color, > backgroundcolor=yellow] > > \starttext > > \m{1

Re: [NTG-context] Bar within math (amended)

2020-06-09 Thread Wolfgang Schuster
background filled fully, but anyway - how about usage of "bar" for this? Use a textbackground to highlight parts of your text. \definetextbackground [Highlight] [frame=off, background=color, backgroundcolor=yellow] \starttext \m{1 + 2 = \unit{3 kilo newton}} \m{1 + 2 = \Highlig

Re: [NTG-context] background of \typing fills column

2020-06-01 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 01.06.2020 um 20:22: Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur

[NTG-context] background of \typing fills column

2020-06-01 Thread Henning Hraban Ramm
Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur if the "typing" is at top or bottom of

Re: [NTG-context] Textbackground inside Layer?

2019-12-09 Thread Wolfgang Schuster
Jon Wong schrieb am 06.12.2019 um 04:13: \setupwhitespace[line] % A line's spacing between paragraphs. \starttext \definetextbackground[InfoText][ location=paragraph, frame=on] You can't use "location=paragraph" because the argument of the \setlayer command is a simple horizontal box

[NTG-context] Textbackground inside Layer?

2019-12-05 Thread Jon Wong
\setupwhitespace[line] % A line's spacing between paragraphs. \starttext \definetextbackground[InfoText][ location=paragraph, frame=on] \definelayer[testlayer] \setlayer[testlayer][x=1cm,y=3cm]{% \startInfoText \stopInfoText } \flushlayer[testlayer] \stoptext Doesn’t work. Only works if

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-05 Thread Duncan Hothersall
otnote and its number a little to the > right, or the leftbartext to the left. > > Best regards: OK > > > On 5 Sep 2019, at 06:45, Aditya Mahajan wrote: > > > > On Thu, 5 Sep 2019, Otared Kavian wrote: > > > >> Hi Wolfgang, > >> >

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
to the left. Best regards: OK > On 5 Sep 2019, at 06:45, Aditya Mahajan wrote: > > On Thu, 5 Sep 2019, Otared Kavian wrote: > >> Hi Wolfgang, >> >> Thanks for your answer. I tried Hans' suggestion to use \textbackground >> instead of background: indeed it

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Aditya Mahajan
On Thu, 5 Sep 2019, Otared Kavian wrote: Hi Wolfgang, Thanks for your answer. I tried Hans' suggestion to use \textbackground instead of background: indeed it solves the problem of incorrect page breaks, but it seems that \setuptextbackground « leftframe=on » is not honoured, that is one

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
Hi Wolfgang, Thanks for your answer. I tried Hans' suggestion to use \textbackground instead of background: indeed it solves the problem of incorrect page breaks, but it seems that \setuptextbackground « leftframe=on » is not honoured, that is one cannot say for instance

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
r > > \input knuth > \stoptext > > Regards > Jon > > >> On Aug 21, 2019, at 9:37 PM, Jon Wong > <mailto:jhannw...@gmail.com>> wrote: >> >> Hi all, >> >> Ah, found the solution in TextBackground. At here: >> https://www.conte

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
, > > Ah, found the solution in TextBackground. At here: > https://www.contextgarden.net/TextBackground > <https://www.contextgarden.net/TextBackground> > > Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 > TextBackgrounds, zero vspace between the

Re: [NTG-context] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all, Ah, found the solution in TextBackground. At here: https://www.contextgarden.net/TextBackground <https://www.contextgarden.net/TextBackground> Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 TextBackgrounds, zero vspace between them)? For the top segment,

Re: [NTG-context] Captions with background

2019-08-04 Thread Hans Hagen
. If the caption is short, the box should be minimal. Is this possible? Even better would be a textbackground just behind the text lines. Unfortunately my MP foo is not up to the task, the rectangular shadow was hard enough, but I’d try. There’s an example in details.pdf, but I don’t understand

[NTG-context] Captions with background

2019-08-03 Thread Henning Hraban Ramm
be minimal. Is this possible? Even better would be a textbackground just behind the text lines. Unfortunately my MP foo is not up to the task, the rectangular shadow was hard enough, but I’d try. There’s an example in details.pdf, but I don’t understand how I could manipulate the path around the text

Re: [NTG-context] Small pages and large framed texts

2019-03-21 Thread Willi Egger
gt;> I appears that I was not clear enough, though I am happy about the >> possibility of using textbackground. >> What I must do is to prepare a list of ConTeXt commands on a very small >> page. So the specific question is, how I can influence the >> \placelistofsorts[texcomm

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster
Willi Egger schrieb am 20.03.19 um 22:11: It’s me again… I appears that I was not clear enough, though I am happy about the possibility of using textbackground. What I must do is to prepare a list of ConTeXt commands on a very small page. So the specific question is, how I can influence

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Willi Egger
It’s me again… I appears that I was not clear enough, though I am happy about the possibility of using textbackground. What I must do is to prepare a list of ConTeXt commands on a very small page. So the specific question is, how I can influence the \placelistofsorts[texcommand] in such a way

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster
{\dorecurse{3}{\input ward\blank}} \stoptext Any hints would be welcome Use the textbackground environment. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
> In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metapost > code to draw the

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
> > > examples). > > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > > problems with 'textbackgrounds'. > > > > > > In this minimal example, the frame doesn't appear (or if i set > > > [frame=on,leftframe=off] al

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Alan Braslau
kgrounds'. > > > > In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metap

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Aditya Mahajan
afun to do it but I encounter some problems with 'textbackgrounds'. In this minimal example, the frame doesn't appear (or if i set [frame=on,leftframe=off] all the frame is rendered) and the left and right offsets are not took into account. textbackground uses metapost for ALL backgrounds and t

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-23 Thread Thomas Floeren
> On 2. Nov 2017, at 15:17, Thomas Floeren <t...@mac.com> wrote: > > Hi, > > I noticed that with one of the recent betas the right offset of my > textbackgrounds doesn’t work properly anymore when the textbackground > contains a multi-column “paragraph”. > >

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
> On 2. Nov 2017, at 18:55, Pablo Rodriguez <oi...@gmx.es> wrote: > > On 11/02/2017 03:17 PM, Thomas Floeren wrote: >> Hi, >> >> I noticed that with one of the recent betas the right offset of my >> textbackgrounds doesn’t work properly anymore when the te

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Pablo Rodriguez
On 11/02/2017 03:17 PM, Thomas Floeren wrote: > Hi, > > I noticed that with one of the recent betas the right offset of my > textbackgrounds doesn’t work properly anymore when the textbackground > contains a multi-column “paragraph”. > > The first box is OK and as expected

[NTG-context] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
Hi, I noticed that with one of the recent betas the right offset of my textbackgrounds doesn’t work properly anymore when the textbackground contains a multi-column “paragraph”. A minimal: \defineparagraphs [TestPar][n=2, distance=7mm] \setupparagraphs [TestPar][1][width=2em

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
m] > \definevimtyping[python][syntax=python, escape=on] > > \starttext > \startpython[highlight=1] > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > \stoppython > \stoptext > ``` By default, the highlighting is done using the bars mechanism. It works for simple cases but f

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
lly usable: > ``` > \usemodule[vim] > \definevimtyping[python][syntax=python, escape=on] > > \starttext > \startpython[highlight=1] > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > \stoppython > \stoptext > ``` By default, the highlighting is done using the bar

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Henri Menke
: > I'll look at this later > > > > > Another point I saw is, that highlight together with TeX-code is not really > > usable: > > ``` > > \usemodule[vim] > > \definevimtyping[python][syntax=python, escape=on] > > > > \starttext > > \sta

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Gerion Entrup
t; > Another point I saw is, that highlight together with TeX-code is not really > > usable: > > ``` > > \usemodule[vim] > > \definevimtyping[python][syntax=python, escape=on] > > > > \starttext > > \startpython[highlight=1] > &

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
using the textbackground mechanism: \definetextbackground[texthighlight] [ background=color, backgroundcolor=gray, frame=off, ] \define[1]\texthighlight{\starttexthighlight#1\stoptexthighlight} \usemodule[vim] \definevimtyping[python][syntax=python, escape

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-16 Thread Mathias Schickel
rttext >>> >>> \starttextbackground >>> \dorecurse{10}{test\footnote{tufte}: \input tufte\par} >>> \stoptextbackground >>> >>> \stoptext >>> >> I have found the following to be necessary when using textbackground, >> especially

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Hans Hagen
lowing to be necessary when using textbackground, especially when backgrounds cross page boundaries: \setnewconstant\kindofpagetextareas\plusone % partial page. HH: low level, no high level switch (yet) Maybe Hans can explain this? Because it's an option (with no parameter yet .. not sure whe

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Alan Braslau
following to be necessary when using textbackground, especially when backgrounds cross page boundaries: \setnewconstant\kindofpagetextareas\plusone % partial page. HH: low level, no high level switch (yet) Maybe Hans can explain this? Alan ___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-12 Thread Mathias Schickel
hat I can do to settle the problem? I have created a minimal example that shows the problem using textbackground to work around the footnote problem. But sadly the framedtext environment does not seem to be able to break across pages. Besides I would prefer the background solution. So what can

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Hans Hagen
ctures, that is, if there is a margin picture at the side of a textbackground, then the textbackground is suppressed for the entire height of the margin picture. Here is a minimal: \setuplayout [ leftmargin=0mm, rightmargin=45mm, height=fit, width=fit, ] \definetextbackground [test] \starttext \placefigure [

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Tom
ackgrounds now interfere with margin pictures, that >> is, >> if there is a margin picture at the side of a textbackground, then the >> textbackground is suppressed for the entire height of the margin picture. >> >> >> Here is a minimal: >> >> \setuplayout [ >> leftma

Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Hans Hagen
On 4/3/2017 2:20 AM, Tom wrote: Hi, today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15. I noticed that my textbackgrounds now interfere with margin pictures, that is, if there is a margin picture at the side of a textbackground, then the textbackground is suppressed

[NTG-context] Textbackground issue with margin pictures

2017-04-02 Thread Tom
Hi, today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15. I noticed that my textbackgrounds now interfere with margin pictures, that is, if there is a margin picture at the side of a textbackground, then the textbackground is suppressed for the entire height of the margin

Re: [NTG-context] RTL bug in textbackground

2016-07-03 Thread Hans Hagen
On 7/3/2016 6:46 PM, Mohammad Hossein Bateni wrote: Hello, When using \definetextbackground in RTL setting, the boundaries are not determined correctly (both for location=paragraph and location=text) and colors gets messed up. Here a sort-of-minimal example adapted from details.pdf. Is there

[NTG-context] RTL bug in textbackground

2016-07-03 Thread Mohammad Hossein Bateni
Hello, When using \definetextbackground in RTL setting, the boundaries are not determined correctly (both for location=paragraph and location=text) and colors gets messed up. Here a sort-of-minimal example adapted from details.pdf. Is there any particular keys I should use in RTL to fix the

Re: [NTG-context] Overlays as background in textbackground

2016-05-18 Thread Alan BRASLAU
Here is a trick (due to Hans, of course) to produce a watermark image. You can play with the idea in order to produce your own effect. \definecolor [percent] [s=1,a=1,t=.9] \externalfigure [cow] [background={foreground,color},backgroundcolor=percent] Alan On Wed, 18 May 2016 11:55:11 +

Re: [NTG-context] Overlays as background in textbackground

2016-05-18 Thread Meer, Hans van der
This code from three years back ia a reply to a question of placing an overlay background. Because the cow is very black I am curious if the \externalfigure can have a paramter to change the alpha of the cow, making it more transparent. By the way, it is not out of curiosity only. If possible

Re: [NTG-context] Is there “toffset” option for \setupbackgrounds in context

2016-02-26 Thread Wolfgang Schuster
but you can do a lot when you use Metapost to draw the background. \startuniqueMPgraphic{TextBackground} path p ; p := unitsquare xscaled OverlayWidth yscaled OverlayHeight ; draw p topenlarged 5mm ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[Te

[NTG-context] textbackground

2015-02-26 Thread Alan BRASLAU
Hello, For a multilingual document, alternating one language or another, not necessarily a bilingual, translated text, I thought about using textbackground to set-off paragraphs. This technique could also apply to a single language text having multiple levels of information, perhaps statements

Re: [NTG-context] textbackground

2015-02-26 Thread Hans Hagen
On 2/26/2015 10:22 AM, Alan BRASLAU wrote: Hello, For a multilingual document, alternating one language or another, not necessarily a bilingual, translated text, I thought about using textbackground to set-off paragraphs. This technique could also apply to a single language text having multiple

[NTG-context] textbackground within framedtext

2015-02-18 Thread Christoph Reller
Hi, How can I use textbackground within framedtext. In the following MWE, the background extends beyond the frame of framedtext. Do I have to use a different mechanism? \definetextbackground[bg][ background=color, backgroundcolor=yellow, frame=off] \starttext \startframedtext Before

Re: [NTG-context] TOC with Grey background for pages belonging to last section of every chapter

2015-02-02 Thread Wolfgang Schuster
schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com: You have to add „location=paragraph” to the textbackground setup. \definetextbackground [ChapterFrame] [frame=off, background=color, backgroundcolor=green, backgroundoffset=1ex, location=paragraph] % default

Re: [NTG-context] Grey background for pages belonging to last section of every chapter

2015-02-02 Thread Wolfgang Schuster
Am 30.01.2015 um 21:43 schrieb Rob Heusdens robh...@xs4all.nl: Correction, I added offset=none,frameoffset=0pt, to the parameters for the textbackground frame. Code again with correction: % test background \setupwhitespace[none] \setupindenting[yes, small, next] \setuppagenumbering

[NTG-context] TOC with Grey background for pages belonging to last section of every chapter

2015-02-02 Thread Keith J. Schultz
” to the textbackground setup. \definetextbackground [ChapterFrame] [frame=off, background=color, backgroundcolor=green, backgroundoffset=1ex, location=paragraph] % default: location=text \definehead [Framed][chapter] \definehead [Frameless] [chapter] \setuphead [Frameless

Re: [NTG-context] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens
Correction, I added offset=none,frameoffset=0pt, to the parameters for the textbackground frame. Code again with correction: % test background \setupwhitespace[none] \setupindenting[yes, small, next] \setuppagenumbering[alternative=doublesided] \definetextbackground [SummaryBackground

Re: [NTG-context] Framed text and page breaks

2014-09-02 Thread Aditya Mahajan
If you just want to reduce the width of paragraphs, use the narrower environment. If you also want frames or background colors that break across page, use the background environment. If you want floats and parshape to also work, use the textbackground environment. Aditya On Tue, 2 Sep 2014

  1   2   3   >